<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ page session="false"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <jsp:include page="restab.jsp" flush="true" />
<title>登陆</title>
</head>
<body>
 <jsp:include page="header.jsp" flush="true" />
 <div id="body">
    <H1>
         登陆
    </H1>
    <form:form action="login" commandName="userDto" modelattribute="userDto" method="post">
    <label for="nameInput">名称: </label>
    <form:input path="username" id="nameInput"></form:input>
    <form:errors path="username" cssclass="error"></form:errors>
    <br />
     
    <label for="passInput">密码: </label>
    <form:input path="password" id="passInput"></form:input>
    <form:errors path="password" cssclass="error"></form:errors>
    <br />
    <label>类型: </label>
     <form:radiobutton path="type" value="customer"/>customer
    <form:radiobutton path="type" value="employee"/>employee
    <form:radiobutton path="type" value="provider"/>provider
    <br />
     <input type="submit" value="登录" /></input>
    </form:form>
    <br>
   </div>
</body>
</html>